package ldk.app.kotlinweibo.configs.dagger

import dagger.Module
import dagger.android.ContributesAndroidInjector
import ldk.app.kotlinweibo.activities.LoginActivity
import ldk.app.kotlinweibo.activities.MainActivity
import ldk.app.kotlinweibo.activities.WelcomeActivity
import javax.inject.Singleton

/**
 * a class for saving activity and it's subcomponents
 * Created by yunjiao on 2017/6/14.
 */
@Singleton
@Module
abstract class ActivitiesModule {

    @ContributesAndroidInjector
    abstract fun contributeWelcomeActivity(): WelcomeActivity

    @ActivityScope
    @ContributesAndroidInjector
    abstract fun contributeLoginActivity(): LoginActivity

    @ActivityScope
    @ContributesAndroidInjector
    abstract fun contributeMainActivity(): MainActivity
}